<?php if (!defined('BASEPATH')) exit('No direct script access allowed');

/**
 * CiQuery
 *
 * CiQuery is an open source set of php helper classes for JQuery JS library.
 *
 * @package		jQuery for CodeIgniter
 * @author		Dennis T. Kaplan
 * @copyright	Copyright (c) 2007, PzzAzz, Inc.
 * @license		http://www.gnu.org/copyleft/gpl.html 
 * @since		Version 0.1
 * @filesource
 */

include_once("Pquery.php");
 
class CiQuery extends JQuery
{
   	function __construct() 
	{
	}

	function form_remote_onchange($a)
	{
        $options = select_options($a['options']);
        unset($a['options']);
		$a['form'] = true; 
        $r = '<select name="'.$a['name'].'" onchange=\''.$this->remote_function($a).'; return false;\'>';
        $r .= $options;  
        $r .= '</select>';
        return $r; 
	}
}
?>
